how to rotate 270 degrees using a matrix